﻿#region Copyrights Notice
//©2010 Microsoft Corporation. All rights reserved.
#endregion

#region usings
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using Microsoft.InformationSecurity.CISF.SecurityPortal.Business.Widget;
#endregion

namespace Microsoft.InformationSecurity.CISF.SecurityPortal.UI.Web.Widgets.MasterControls
{
    public partial class WidgetContainerHeader : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public IWidgetActions Super;

        public Label Title
        {
            get
            {
                return WidgetTitle;
            }
        }
        public LinkButton CloseLinkButton
        {
            get
            {
                return CloseWidget;
            }
        }

        public LinkButton ExpandLinkButton
        {
            get
            {
                return ExpandButton;
            }
        }


        public LinkButton CollapseLinkButton
        {
            get
            {
                return CollapseButton;
            }
        }



        protected void CollapseButton_Click(object sender, EventArgs e)
        {
            //IWidgetActions
            Super.Minimize();
            //NTODO
        }

        protected void ExpandButton_Click(object sender, EventArgs e)
        {
            //
            Super.Maximize();
        }

        protected void EditButton_Click(object sender, EventArgs e)
        {
            Super.UpdateSettings();
            //
        }

        protected void CloseWidget_Click(object sender, EventArgs e)
        {
            Super.Close();
            //
        }

        protected void CancelEditWidget_Click(object sender, EventArgs e)
        {
            Super.UpdateSettings();
        }

    }
}